Product Documentation

FairCom RTG COBOL User Guide

Previous Topic

Next Topic

<[Condition]> when elements

The condition elements are used by the <when> element to identify when the current rule will be applied. A condition rule is satisfied if all the specified attributes match the matching element of the XDD file:

  • <table> condition is satisfied if all attributes specified in the rule condition matches the <table> tag of the XDD file.
  • <schema> condition is satisfied if all attributes specified in the rule condition matches the <schema> tag of the XDD file.
  • <field> condition is satisfied if all attributes specified in the rule condition matches the <field> tag of the XDD file.

The condition elements are mutually exclusive and contain the attributes of the element with the same name as the XDD file.

If more condition elements are specified the current rule will be applied if all the conditions are satisfied:

<XFDrules>

<rule>

<when>

<"Condition">

</"Condition">

</when>

</rule>

</XFDrules>

Attibutes

  • For <table> condition element attributes refer to the attributes list of the <table> element of the XDD file.
  • For <schema> condition element attributes refer to the attributes list of the <schema> element of the XDD file.
  • For <field> condition element attributes refer to the attributes list of the <field> element (children of the <schema> element element) of the XDD file.

See Also

TOCIndex